﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CML.Data.Instructions
{
	public class AddXmlInstruction : XmlInstruction
	{
		public string xml;
		public string location;

		public AddXmlInstruction(string xml, string xpath, string location)
		{
			this.xml = xml;
			this.xpath = xpath;
			this.location = location;
		}

		public class Locations
		{
			public const string to = "to";
			public const string before = "before";
			public const string after = "after";
		}

		public override string ToString()
		{
			return string.Join(" ", "add", wrap(xml), location, wrap(xpath));
		}
	}
}
